#ifndef CAPTCHAASSISTDIALOG_H
#define CAPTCHAASSISTDIALOG_H

#include <QDialog>
#include <QPointer>

namespace yc {
class LoadingFrame;
}

class CaptchaAssistDialog : public QDialog
{
    Q_OBJECT
public:
    explicit CaptchaAssistDialog(QWidget* widget, QWidget* parent = nullptr);
    ~CaptchaAssistDialog();

    void showLoading();
    void hideLoading();

Q_SIGNALS:
    void discarded();

protected:
    void resizeEvent(QResizeEvent* event) override;
    void closeEvent(QCloseEvent* event) override;

private:
    QPointer<QWidget> widget_parent_;
    QPointer<QWidget> widget_;
    QRect widget_geometry_;
    yc::LoadingFrame* loading_frame_;
};

#endif // CAPTCHAASSISTDIALOG_H
